﻿using System.Collections.Generic;
using System.Linq;
using TeamCityMonitor.Models;

namespace TeamCityMonitor.Repository
{
    public interface IQuoteRepository
    {
        IEnumerable<Quote> GetAllQuotes();
    }

    public class QuoteRepository : IQuoteRepository
    {
        private StorageContext db = new StorageContext();

        public IEnumerable<Quote> GetAllQuotes()
        {
            return db.Quotes.ToList();
        }
    }
}